import {Service, action} from "adajs";
import HospitalList from "../../../../controls/lists/hospital";

class LodgeService extends Service {
    defaultData() {
        return {
            title: "设置",
            btns: [
                {action: "add", icon: ":for-add"}
            ],
            list: {
                url: "/api/lgb/app/lgb/hospitalization/queryPage",
                type: HospitalList
            }
        };
    }

    onupdate(current, data) {
        Object.assign(current, data);
    }
}

export default LodgeService;